package com.mall.user.fallbackhandler;

import com.alibaba.csp.sentinel.slots.block.degrade.DegradeException;

public class TestFallBackHandler {

    public static String testFusingFallback(String flag,Throwable throwable) {

        if (throwable instanceof DegradeException) {
            return "触发熔断";
        }else {
            return "触发其他异常";
        }

    }


}
